home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / c3 / pro14 / stack2.c < prev   
Encoding:
Text File  |  1991-09-07  |  548 b   |  21 lines

  1. /****************************************************************
  2. *    STACK2.C - demonstration of the code generated by Turbo C    *
  3. *    for calling a function                                        *
  4. *                                                                *
  5. *    To compile: "tcc -S stack2"                                    *
  6. ****************************************************************/
  7. void CalledFunction(int a, char b, char *c)
  8.    {
  9.    int i;
  10.    long k;
  11.  
  12.    i=3;
  13.    k=102591;    /* use the local variables */
  14.    i = b;       /* access an argument      */
  15.    }
  16.  
  17. void main(void)
  18.    {
  19.    CalledFunction(4,'c',"abcdef");
  20.    }
  21.